package day06;

public class MethodDemo03 {
    public static void main(String[] args) {
        sayHello("邵赟",65);
        sayHello("邵赟1",18);
    }
    public  static void sayHello(String name,int age){
        if(age>60){//某种特定条件下，提前结束方法
            System.out.println("嘎了");
            return;//结束方法的执行
        }
        System.out.println("大家好，我叫"+name+",我今年"+age+"岁了");
    }
}
